//
//  MessageCell.m
//  intelligent
//
//  Created by Ace Portgas on 2024/2/19.
//

#import "MessageCell.h"
@interface MessageCell()
@property (nonatomic,strong) UIImageView * avatar;
@property (nonatomic,strong) UIView * contentBackView;
@property (nonatomic,strong) UILabel * content;
@property (nonatomic,strong) UIButton * collectionBtn;
@end
@implementation MessageCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initView];
    }
    return self;
}

-(void)initView{
    _avatar = [[UIImageView alloc]init];
    _avatar.layer.cornerRadius = 19;
    _avatar.layer.masksToBounds = YES;
    _avatar.contentMode = UIViewContentModeScaleAspectFill;
    [self.contentView addSubview:_avatar];
    
    _contentBackView = [UIView new];
    [self.contentView addSubview:_contentBackView];
    
    _content = [UILabel new];
    _content.font = [UIFont fontWithName:@"PingFangSC-Medium" size:14];
    _content.textColor = [UIColor colorWithHexString:@"ffffff"];
    _content.textAlignment = NSTextAlignmentLeft;
    _content.numberOfLines = 0;
    [_contentBackView addSubview:_content];
}

-(void)setModel:(MessageModel *)model{
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
